package com.xingzhi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * @ClassName EurekaApplication
 * @DESCRIPTION 使用@EnableFeignClients开启Feign
 * @Author RuanlinJing
 * @Date 2018/6/21 20:38
 * @Version 1.0
 **/
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrixDashboard
@EnableCircuitBreaker
public class MovieFeignHystrixApplication {
    public static void main(String[] args){
        SpringApplication.run(MovieFeignHystrixApplication.class,args);
    }
}
